import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 12,
    menuWidth: 300,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    editBtn: true,
    viewBtn: true,
    delBtn: true,
    searchLabelWidth: 120,
    column: [
      {
        label: '中文船名',
        prop: 'p1',
        search: true,
        overHidden: true,
      },
      {
        label: '英文船名',
        prop: 'p2',
        overHidden: true,
        hide: true
      },
      {
        label: '船舶识别号',
        prop: 'p3',
        overHidden: true,
      },
      {
        label: 'IMO号',
        prop: 'p4',
        overHidden: true,
        hide: true
      },
      {
        label: 'MMSI',
        prop: 'p5',
        search: false,
        overHidden: true,
      },
      {
        label: '船舶类型',
        prop: 'p6',
        search: true,
        dicData: [
          {
            label: '工程船', value: '工程船'
          },
          {
            label: '客船', value: '客船'
          },
          {
            label: '危化品船', value: '危化品船'
          },
          {
            label: '集装箱船', value: '集装箱船'
          }
        ],
        filterable: true,
        type: 'select',
        overHidden: true,
      },
      {
        label: '总吨位/客位',
        prop: 'p7',
        overHidden: true
      },
      {
        label: '管理公司',
        prop: 'p8',
      },
    ]
  }
}
